package oop.packaging;

public class Computer {

    private double price;
    private String color;

    private int size;

    public double getPrice() {
        return price;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void playGame(){
        System.out.println("玩游戏");
    }

    public void program(){
        System.out.println("写代码");
    }
}
